package com.zzyl.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 护理计划和项目关联表实体类
 */
@Data
@Builder
@ApiModel(description = "护理计划和项目关联表")
public class NursingProjectPlan {

    @ApiModelProperty(value = "编号", required = true, example = "1")
    private Long id;

    @ApiModelProperty(value = "计划id", required = true, example = "1")
    private Long planId;

    @ApiModelProperty(value = "项目id", required = true, example = "1")
    private Long projectId;

    @ApiModelProperty(value = "计划执行时间", required = true, example = "2024-12-05 10:00")
    private String executeTime;

    @ApiModelProperty(value = "执行周期 (0: 天, 1: 周, 2: 月)", required = true, allowableValues = "0,1,2", example = "0")
    private Integer executeCycle;

    @ApiModelProperty(value = "执行频次", required = true, example = "3")
    private Integer executeFrequency;

    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人id", example = "1234567890")
    private Long createBy;

    @ApiModelProperty(value = "更新人id", example = "1234567890")
    private Long updateBy;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "项目名称")
    private String projectName;
}